key controller: Improve the docs
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 Mar 2019 15:19:12 +0000 (10:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2019 01:24:45 +0000 (21:24 -0400)
Mention the limitations of the key forwarding api.

gtk/gtkeventcontrollerkey.c

index b57e9df19e270078137d8f5ddfb6479c8e0786b0..290909597945ae0929a3c0d71b62d7438b982664 100644 (file)
@@ -470,6 +470,13 @@ gtk_event_controller_key_get_im_context (GtkEventControllerKey *controller)
  *
  * Forwards the current event of this @controller to a @widget.
  *
+ * This function can only be used in handlers for the
+ * #GtkEventControllerKey::key-pressed,
+ * #GtkEventControllerKey::key-released
+ * or
+ * #GtkEventControllerKey::modifiers
+ * signals.
+ *
  * Returns: whether the @widget handled the event
  **/
 gboolean